ATLAS-5373: Atlas React UI: Extremely long entity names break layout in Latest Entities Created widget - #728
Open
Brijesh619 wants to merge 5 commits into
Open
ATLAS-5373: Atlas React UI: Extremely long entity names break layout in Latest Entities Created widget#728Brijesh619 wants to merge 5 commits into
Brijesh619 wants to merge 5 commits into
Conversation
Contributor
Author
Contributor
Author
Contributor
Author
Contributor
Author
…in Latest Entities Created widget
…in Latest Entities Created widget
…in Latest Entities Created widget
…in Latest Entities Created widget
…in Latest Entities Created widget
Brijesh619
force-pushed
the
ATLAS-5373
branch
from
September 3, 2026 10:26
0b2f658 to
48928cd
Compare
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








What changes were proposed in this pull request?
ATLAS-5373: Atlas React UI: Refactor and stabilize layout in Latest Entities Created widget
This PR fixes styling, layout, and type-safety bugs in the "Latest Entities Created" widget and its underlying shared components. It migrates away from inline
sxobjects to strict, maintainable SCSS classes, and drastically improves the performance, layout resilience, and type safety of shared UI components.sxstyles across theLatestEntitiesListcomponent and migrated them toLatestEntitiesList.scss. Hardened flex layout rules (flex: 1 1 auto; min-width: 0) and addedflex-shrink: 0/max-width: 45%constraints on.latest-entities-type-wrapperto prevent long entity names from squishing the type label down to an isolated(character.OverflowTooltipcomponent to elegantly handle long entity and type names. Added explicit CSS truncation rules (overflow: hidden,text-overflow: ellipsis,white-space: nowrap,min-width: 0) directly to.latest-entities-type-namein SCSS alongsideOverflowTooltipfor guaranteed visual consistency.OverflowTooltipinmuiComponents.tsxto useResizeObserver(combined with anonMouseEnterfallback) for accurate DOM boundary detection. Added inline documentation clarifying the per-instance observer pattern trade-offs.LightTooltipinmuiComponents.tsxto strictly useTooltipPropsinstead ofany.CustomButtonto enforce native@mui/material/ButtonProps, eliminating legacyanyescape hatches. Proactively cleaned up invalid props and event handlers across downstream consumers to guarantee 100% type safety."Created "prefix on relative timestamps to maintain UX expectations and cleaned up formatting/blank line inconsistencies between helpers and component definitions.How was this patch tested?
..., long type names remain appropriately visible without collapsing into(, and tooltips appear precisely when fractional overflow occurs.LatestEntitiesList.test.tsxback to strict/^Created /regex matchers (lines 190, 331, 537, 603) for strong regression protection.typeName('B'.repeat(300)) verifying robust rendering without layout breakdown.triggerResize: ResizeObserverCallback) inmuiComponents.test.tsx.npm run test).npm run typecheck) across the entire dashboard with zero errors.